<?php

namespace Application\Form;

use Zend\Form\Annotation;

/**
 * @Annotation\Hydrator("Zend\Stdlib\Hydrator\ObjectProperty")
 * @Annotation\Name("form_change_password")
 */
class UpdateInfoReaderForm {

    /**
     * @Annotation\Type("Zend\Form\Element\Hidden")
     * @Annotation\Required(false)
     * @Annotation\Attributes({"id":"userID"})
     * @Annotation\Attributes({"class":"userID"})
     */
    public $userID;

    /**
     * @Annotation\Type("Zend\Form\Element\Text")
     * @Annotation\Required({"required":"true"})
     * @Annotation\Options({"label":"Ngày sinh:"})
     * @Annotation\Attributes({"id":"datepicker","class":"textboxStyle"})
     */
    public $birthday;

    /**
     * @Annotation\Type("Zend\Form\Element\Select")
     * @Annotation\Required({"required":"true" })
     * @Annotation\Filter({"name":"StripTags"})
     * @Annotation\Options({"label":"Giới tính:",
     *                      "value_options" : {"1":"Nam","2":"Nữ"}})
     * @Annotation\Attributes({"value":"0","id":"sex","class":"textboxStyle"})
     */
    public $sex;

    /**
     * @Annotation\Type("Zend\Form\Element\Email")
     * @Annotation\Required(false)
     * @Annotation\Filter({"name":"StripTags"})
     * @Annotation\Filter({"name":"StringTrim"})
     * @Annotation\Options({"label":"Email:"})
     * @Annotation\Attributes({"id":"email","class":"textboxStyle"})
     */
    public $email;

    /**
     * @Annotation\Type("Zend\Form\Element\Text")
     * @Annotation\Required(false)
     * @Annotation\Filter({"name":"StringTrim"})
     * @Annotation\Filter({"name":"StripTags"})
     * @Annotation\Options({"label":"Số điện thoại:"})
     * @Annotation\Validator({"name":"Regex", "options":{"pattern":"/^[0-9]/"}})
     * @Annotation\Attributes({"id":"phoneNumber","class":"textboxStyle"})
     */
    public $phoneNumber;

    /**
     * @Annotation\Type("Zend\Form\Element\Text")
     * @Annotation\Required({"required":"true" })
     * @Annotation\Filter({"name":"StripTags"})
     * @Annotation\Filter({"name":"StringTrim"})
     * @Annotation\Validator({"name":"StringLength", "options":{"min":"1"}})
     * @Annotation\Options({"label":"Thường trú:"})
     * @Annotation\Attributes({"id":"residentAddress","class":"textboxStyle"})
     */
    public $residentAddress;

    /**
     * @Annotation\Type("Zend\Form\Element\Text")
     * @Annotation\Required(false)
     * @Annotation\Filter({"name":"StripTags"})
     * @Annotation\Filter({"name":"StringTrim"})
     * @Annotation\Validator({"name":"StringLength", "options":{"min":"1"}})
     * @Annotation\Options({"label":"Quê quán:"})
     * @Annotation\Attributes({"id":"nativePlace","class":"textboxStyle"})
     */
    public $nativePlace;

    /**
     * @Annotation\Type("Zend\Form\Element\Textarea")
     * @Annotation\Required(false)
     * @Annotation\Validator({"name":"StringLength", "options":{"max":"100"}})
     * @Annotation\Options({"label":"Mô tả thêm:"})
     * @Annotation\Attributes({"id":"description","cols":"37","rows":"5","class":"textboxStyle"})
     */
    public $description;

    /**
     * @Annotation\Type("Zend\Form\Element\File")
     * @Annotation\Required(false)
     * @Annotation\Options({"label":"Ảnh thẻ:"})
     * @Annotation\Attributes({"id":"profilePhoto","class":"profilePhoto","size":"25"})
     */
    public $profilePhoto;

    /**
     * @Annotation\Type("Zend\Form\Element\Submit")
     * @Annotation\Attributes({"value":"Cập nhật"})
     * @Annotation\Attributes({"id":"MainContent_ctl07_btnReset","class":"MainContent_ctl07_btnReset"})
     */
    public $updateInfoReader;

}

?>